From d382d6ae615a13da8296ed044179efdd2add2969 Mon Sep 17 00:00:00 2001 From: Jorge Aparicio Date: Tue, 29 Mar 2016 19:38:13 -0500 Subject: [PATCH] install-deps.py: add x86_64-unknown-linux-musl target This lets me build a statically linked cargo on our linux-cross Docker image with the following commands: $ apt-get install musl-tools # for musl-gcc, which is needed to build openssl $ ./.travis.install.deps.sh $ ./configure --local-rust-root=$(pwd)/rustc --enable-nightly --target=x86_64-unknown-linux-musl $ make $ file target/x86_64-unknown-linux-musl/release/cargo cargo: ELF 64-bit LSB executable, x86-64, version 1 (GNU/Linux), statically linked (..) --- src/etc/install-deps.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/etc/install-deps.py b/src/etc/install-deps.py index 68bfd0894..9d453345e 100644 --- a/src/etc/install-deps.py +++ b/src/etc/install-deps.py @@ -22,6 +22,7 @@ if sys.platform == 'linux' or sys.platform == 'linux2': targets = [ 'i686-unknown-linux-gnu', 'x86_64-unknown-linux-gnu', + 'x86_64-unknown-linux-musl', 'arm-unknown-linux-gnueabi', 'arm-unknown-linux-gnueabihf', 'armv7-unknown-linux-gnueabihf', -- 2.30.2